export default {
    path: '/template',
    name: 'template',
    redirect: '/template/list',
    component: () => import('@/views/layout/layout.vue'),
    meta: {
        title: '合同模板',
    },
    children: [
        {
            path: 'list',
            name: 'templateList',
            component: () => import('@/views/template/contract/list'),
            meta: {
                title: '模板管理',
            },
        },
        {
            path: 'add',
            name: 'templateAdd',
            component: () => import('@/views/template/contract/add'),
            meta: {
                title: '添加合同模板',
                hidden: true,
            },
        },
        {
            path: 'edit/:id',
            name: 'templateEdit',
            component: () => import('@/views/template/contract/edit'),
            meta: {
                title: '编辑合同模板',
                hidden: true,
            },
            props: true,
        },
        {
            path: 'sign',
            name: 'templateSign',
            component: () => import('@/views/template/contract/sign'),
            meta: {
                title: '发起签署',
                hidden: true,
            },
        },
        {
            path: 'scope',
            name: 'templateScope',
            component: () => import('@/views/template/scope/list'),
            meta: {
                title: '范围管理',
            },
        },
    ],
};
